package com.atguigu.srb.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * ClassName: SpringCoreApplication
 * Package: com.atguigu.srb.core
 * Description:
 *
 * @Author 刘强
 * @Create 2024/4/15 11:12
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan("com.atguigu.srb.core.mapper")
@ComponentScan("com.atguigu.srb")   // 因为导入了其他模块，而组件扫描默认扫描的是主程序所在的包
public class SpringCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringCoreApplication.class,args);
    }
}
